package com.ruoyi.project.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 浆纱上机记录对象 beam_record
 * 
 * @author ruoyi
 * @date 2022-01-02
 */
public class BeamRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录索引 */
    private Long id;

    /** 生产品种 */
    @Excel(name = "生产品种")
    private String scpz;

    /** 工艺id */
    @Excel(name = "工艺id")
    private Long gyid;

    /** 机器ID */
    @Excel(name = "机器ID")
    private Long macid;

    /** 品种长度 */
    @Excel(name = "品种长度")
    private Long pzlength;

    /** 目标长度 */
    @Excel(name = "目标长度")
    private Long length;

    /** 实际生产长度 */
    @Excel(name = "实际生产长度")
    private Long sclength;

    /** 上机时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上机时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sjtime;

    /** 了机时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "了机时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ljtime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setScpz(String scpz) 
    {
        this.scpz = scpz;
    }

    public String getScpz() 
    {
        return scpz;
    }
    public void setGyid(Long gyid) 
    {
        this.gyid = gyid;
    }

    public Long getGyid() 
    {
        return gyid;
    }
    public void setMacid(Long macid) 
    {
        this.macid = macid;
    }

    public Long getMacid() 
    {
        return macid;
    }
    public void setPzlength(Long pzlength) 
    {
        this.pzlength = pzlength;
    }

    public Long getPzlength() 
    {
        return pzlength;
    }
    public void setLength(Long length) 
    {
        this.length = length;
    }

    public Long getLength() 
    {
        return length;
    }
    public void setSclength(Long sclength) 
    {
        this.sclength = sclength;
    }

    public Long getSclength() 
    {
        return sclength;
    }
    public void setSjtime(Date sjtime) 
    {
        this.sjtime = sjtime;
    }

    public Date getSjtime() 
    {
        return sjtime;
    }
    public void setLjtime(Date ljtime) 
    {
        this.ljtime = ljtime;
    }

    public Date getLjtime() 
    {
        return ljtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("scpz", getScpz())
            .append("gyid", getGyid())
            .append("macid", getMacid())
            .append("pzlength", getPzlength())
            .append("length", getLength())
            .append("sclength", getSclength())
            .append("sjtime", getSjtime())
            .append("ljtime", getLjtime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
